#include "Sa2dDom.h"

rotation::rotation() {

}

rotation::rotation(double x, double y) {
	setAngle_x(x);
	setAngle_y(y);
}

double rotation::getAngle_x() {
	return angle_x;
}

double rotation::getAngle_y() {
	return angle_y;
}

void rotation::setAngle_x(double angle_x) {
	this->angle_x = angle_x;
}

void rotation::setAngle_y(double angle_y) {
	this->angle_y = angle_y;
}

string rotation::toString(int indent){
	string tabs = this->getIndent(indent);
	stringstream returnString;
	returnString << tabs << "rotation:\n";
	returnString << tabs << "x angle: " << angle_x <<"\n";
	returnString << tabs << "y angle: " << angle_y <<"\n";
	return returnString.str();
}
